<template>
  <view class="kp"> </view>
</template>
<script setup>
onLoad(() => {

    // const timer=ref(0)
  // 设置setTimeout定时器
  const timer= setTimeout(function () {
    uni.switchTab({
      url: "/pages/tabbar/home"
    });
  }, 3000);

});
onUnload(()=>{
      // 清除setTimeout定时器
//   clearTimeout();
})
</script>
<style lang="scss" scoped>
.kp {
  width: 100%;
  height: 100%;
  // border: 1rpx solid red;
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  background-image: url("../../assets/images/kp.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}
</style>

